export class systemcity {
  id?: number;
  name = '';
                    cityId=''
                  level=''
                  parentId=''
                  areaCode=''
                  name=''
                  mergerName=''
                  lng=''
                  lat=''
                  isShow=''
                  createTime=''
                  updateTime=''
        constructor(data?: systemcity) {
    data && this.setProps(data);
  }

  setProps(data: systemcity) {
    (Object.keys(this) as Array<keyof Isystemcity>).forEach((key) => {
      // @ts-ignore
      this[key] = data[key]
    })
  }
}

export type Isystemcity = Omit<systemcity, 'setProps'>